<?php 
	include('connect.php');
	$sql = "select * from notice order by id desc limit 1";
	$notice = $db->query($sql);
	if($notice->num_rows > 0){
		while($row = $notice->fetch_assoc()){
			echo "<p>" .$row['user']. ":" .$row['value']. "[发布时间:" .$row['time']. "]</p>";
		}
	}else{
		echo "当前无通知";
	}
 ?>